/**
 * 
 */
package cn.hh.modules.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.hh.modules.common.dto.output.ApiResult;
import cn.hh.modules.system.dto.model.UserInfoVO;
import cn.hh.modules.system.service.IUserService;
import io.swagger.annotations.Api;

/**
 * 
 * @author hh
 *
 */
@RestController
@RequestMapping("/api/system/user")
@Api(tags="系统管理-用户基础信息表接口")
public class SysUserController {
	@Autowired
	IUserService userService;
	
	//	private IUser
	@PostMapping(value="/getCurrentUserInfo",produces = "application/json;charset=utf-8")
	public ApiResult getCurrentUserInfo(String token) {
		UserInfoVO info = userService.getCurrentUserInfo(token);
		return ApiResult.ok(200,"获取当前用户信息成功",info);
	}
	

}
